// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import Qt 4.7

 Item {
     id: exposureCompensation
     property real value : flickableList.items[flickableList.index]
     signal clicked

     width : 144
     height: 70

     BorderImage {
         id: buttonImage
         source: "images/toolbutton.sci"
         width: exposureCompensation.width; height: exposureCompensation.height
     }

     Text {
         text: "Ev:"
         x: 8
         y: 8
         font.pixelSize: 18
         color: "white"
     }

     FlickableList {
         anchors.fill: buttonImage
         id: flickableList
         items: ["-2", "-1.5", "-1", "-0.5", "0", "+0.5", "+1", "+1.5", "+2"]
         index: 4

         onClicked: exposureCompensation.clicked()

         delegate: Text {
             font.pixelSize: 22
             color: "white"
             styleColor: "black"
             width: flickableList.width
             height: flickableList.height
             horizontalAlignment: Text.AlignHCenter
             verticalAlignment: Text.AlignVCenter
             text: flickableList.items[index]
         }
     }
 }
